package org.android.ca;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.widget.TextView;

public class DetailsActivity extends Activity {
TextView text;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.details);
	    text=(TextView)findViewById(R.id.textView1);
	    Intent intent=getIntent();
	    intent.getData();
	    Uri data=intent.getData();
	   Bundle extras=intent.getExtras();
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("LeaveId")); 
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("Name"));
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("LeaveType"));
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("From"));
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("To"));
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("Status"));
	   ((TextView)findViewById(R.id.textView1)).setText(extras.getString("approvedBy")); 
	

}
}
